hide keyboard in flutter

45

FocusScope.of(context).unfocus()
/// Hide the soft keyboard.
void hideKeyboard(BuildContext context) {
  FocusScope.of(context).requestFocus(FocusNode());
}

Comments

Submit
0 Comments